package com.wc.alorithm_luogu.P1914;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/22 14:03
 * @description https://www.luogu.com.cn/problem/P1914
 * 小书童——凯撒密码
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int distant = Integer.parseInt(sc.nextLine());

        String s = sc.nextLine();

        char[] chs = s.toCharArray();

        for (int i = 0; i < chs.length; i++) {
            chs[i] = (char) ('a' + (chs[i] - 'a' + distant) % 26);
        }

        System.out.println(String.valueOf(chs));
    }
}
